function main(params)
{
    debugger
    const  self = this;
    const recordId = params['4a937620-21f0-4c34-a916-fdfdf398837f'];
    const superviseFlag = params['53c67cdc-5e02-486e-8ec8-0574af440d08'];
    const lawEnforcingFlag = params['e5b1b1d9-6d52-402f-a43c-0645f60510a7'];
    const delegationFlag = params['43b449ec-f85c-4361-9c58-5d4ccca0773e'];
    return goDetailPageByFlag(self,recordId, superviseFlag, lawEnforcingFlag, delegationFlag);
}

function goDetailPageByFlag(self, recordId, superviseFlag, lawEnforcingFlag, delegationFlag) {
    const pageMap = {
        supervise: "1912793223719403520",    // 监督部门详情
        lawEnforcing: "1913056879875047424", // 执法部门详情
        delegation: "1913038945425408000"    // 受委托组织详情
    };

    let targetPageId = null;

    if (superviseFlag) {
        targetPageId = pageMap.supervise;
    } else if (lawEnforcingFlag) {
        targetPageId = pageMap.lawEnforcing;
    } else if (delegationFlag) {
        targetPageId = pageMap.delegation;
    }

    if (!targetPageId) {
        console.warn("未匹配到详情页面，请检查标志字段");
        return;
    }

    self.$$open(targetPageId, "PAGE", {
        title: "详情",
        cached: false,
        backStep: 1,
        showHeader: true,
        extraParams: {
            id: recordId,
            actionType: { action: "detail" }
        }
    });
}
